package ${packageName};

import java.util.List;
import java.util.Date;

<#list importPackage as imp>
import ${imp};
</#list>
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.web.bind.annotation.*;

/**   
 * Create by apisdk 
 */
public interface ${className?cap_first} extends MongoRepository<${modelClassName?cap_first},String> ,QueryByExampleExecutor<${modelClassName?cap_first}>{

<#if queryFields??>
	<#list queryFields as field>
	/**
	 * query ${modelClassName?cap_first} List by field: ${field.name}
	 */
    List<${modelClassName?cap_first}> findBy${field.name?cap_first}(${field.type} ${field.name});
	</#list>
	<#else>
</#if>
}
